//
//  IntentionGoodsListModel.m
//  BlackBambooCM-OC
//
//  Created by DKang on 2018/12/13.
//  Copyright © 2018年 ucanmax. All rights reserved.
//

#import "IntentionGoodsListModel.h"
#import "TradeProModel.h"

@implementation IntentionGoodsListModel

+ (void)postAddintentiongoodsList:(NSArray *)list {
    NSMutableArray *array = [NSMutableArray new];
    
    for (TradeProModel *model in list) {
        NSDictionary *dict = @{@"goodsSkuId":model.goodsSkuId,
                               @"intentionBack":model.skuValue,
                               @"intentionDesc":model.goodsName,
                               @"intentionNum":model.goodsNum
                               };
        [array addObject:dict];
    }
    [[WYNetwork sharedWYNetwork] postAddIntentionList:array success:^(id responseObject) {
        NSLog(@"%@",responseObject);
    } failure:^(NSString *error) {
        NSLog(@"%@",error);
    }];
}
@end
